#if !defined(_CONTROLLER_H_)
#define _CONTROLLER_H_

#include <string.h>
#include <time.h>

typedef struct 
{
	int time_error_;
	int controller_num_;
	int current_phase_;
	int current_prog_;

	time_t last_phase_time_;
	time_t phase_delay_;

} controller_t;

int controller_exec_command(controller_t *_cont, const unsigned char *_in_packet, size_t _in_packet_len, char *_out_buffer, size_t _out_buffer_len, size_t *_real_len);

#endif
